﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ZX.WebApp.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>澳康达OA系统-登录</title>
    <link rel="icon" href="/Images/icon/favicon.ico" type="image/x-icon" />
    <link href="Styles/css.login.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/LoginCheck.js" type="text/javascript"></script>
    <script type="text/javascript">
        var doPost = function () {
           window.open("Index.aspx", "screen", "fullscreen==yes");

       };

       function GetRequest() {
           var url = location.search; //获取url中"?"符后的字串
           var theRequest = new Object();
           if (url.indexOf("?") != -1) {
               var str = url.substr(1);
               strs = str.split("&");
               for (var i = 0; i < strs.length; i++) {
                   theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
               }
           }
           return theRequest;
       }

       window.onload = function () {


       ////Modify By Ryan 2014051316:测试用
           /*
           var Request = new Object();
           Request = GetRequest();
           var username;
           susername = Request['username'];

           document.getElementById("txtUserName").value = susername;
           document.getElementById("txtPassword").value = "1";
           document.getElementById("LbtnLogin").click();
           */

       }

    </script>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="LbtnLogin" defaultfocus="txtSource">
    <div>
        <div id="Llogin">
            <div id="top">
                <div id="Ltop_left">
                    <img src="Images/png/logo.jpg" alt="" /></div>
                <div id="Ltop_center">
                </div>
            </div>
            <div id="center">
                <div id="Lcenter_left">
                </div>
                <div id="Lcenter_content">
                    <div id="source" style="visibility: hidden;">
                        企业号：
                        <select id="txtSource" name="dept" style="width: 134px;" runat="server">
                        </select>
                    </div>
                    <div id="Luser">
                        用户名：
                        <input id="txtUserName" type="text" value="" style="width: 130px" runat="server" />
                    </div>
                    <div id="Lpassword">
                        密码：
                        <input id="txtPassword" type="password" value="123456" style="width: 130px" runat="server" />
                    </div>
                    <div id="Lcode" style="display: <%=validateCode %>">
                        验证码：
                        <input id="txtCode" type="text" style="width: 50px" runat="server" />
                        <img id="vimg" src="VCode.aspx" style="vertical-align: bottom; cursor: pointer; width: 50px;
                            height: 25px;" onclick="javascript:document.getElementById('vimg').src='VCode.aspx?'+new Date();"
                            alt="看不清，换一张" title="看不清，换一张" runat="server" />
                    </div>
                </div>
                <div id="Lcenter_right">
                </div>
            </div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <div id="Ldown">
                        <div id="bottom_left">
                            <div id="Linf">
                            </div>
                        </div>
                        <div id="bottom_center">
                            <div id="Lbtn">
                                <asp:ImageButton ID="LbtnLogin" CssClass="LbtnLogin" runat="server" ImageUrl="Images/png/btn_dl.gif"
                                    OnClientClick="return Validation()" OnClick="btnLogin_Click" />
                                <asp:ImageButton ID="LbtnReset" CssClass="LbtnReset" runat="server" ImageUrl="Images/png/btn_qx.gif"
                                    OnClick="btnReset_Click" />
                            </div>
                        </div>
                    </div>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="LbtnLogin" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
    </div>
	<div class="page">       
        <div class="main">
		<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
		<p style="text-align:center">© 2011-2014 all right reserved 澳康达OA(www.AKDOA.COM) 版权所有<BR/>
			<a href="http://www.miitbeian.gov.cn" target="_blank" rel="nofollow">粤ICP备08103228号-2</a>
 
        </div>
        <div class="clear"></div>
    </div>
    </form>
</body>
</html>
